cask 'screenfocus' do
  version '1.0.1'
  sha256 '2b64e3b66b3b105a01f801e6fa1ec1aa66ee1804e4a3e1c427b66c830e0151ce'

  url "https://www.apptorium.com/public/products/screenfocus/releases/ScreenFocus-#{version}.zip"
  appcast 'https://macupdater.net/cgi-bin/check_urls/check_url_redirect.cgi?url=https://www.apptorium.com/screenfocus/trial'
  name 'ScreenFocus'
  homepage 'https://www.apptorium.com/screenfocus'

  app 'ScreenFocus.app'

  zap trash: [
               '~/Library/Application Support/ScreenFocus',
               '~/Library/Application Support/com.apptorium.ScreenFocus-dm',
               '~/Library/Caches/com.apptorium.ScreenFocus-dm',
               '~/Library/Preferences/com.apptorium.ScreenFocus-dm.plist',
               '/Users/Shared/ScreenFocus',
             ]
end
